package com.ces.knacky.framework.controller;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;

@Controller
public abstract class ListController<IEntity> extends BaseController {
	
	protected List<IEntity> listEntity; 

	/**
	 * @return the listEntity
	 */
	@ModelAttribute("entityList")
	public List<IEntity> getListEntity() {
		return listEntity;
	}

	/**
	 * @param listEntity the listEntity to set
	 */
	public void setListEntity(List<IEntity> listEntity) {
		this.listEntity = listEntity;
	}
}
